package com.imooc.newretail.bpl.dto;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @program:new-retail-teach
 * @description:菜单树视图对象
 * @author:Hank.He
 * @create:2020-06-23 21:10
 **/
@Data
@ToString
public class MenuTreeDTO implements Serializable {
    private String menuId;
    private String title;
    private String icon;
    private String href;
    private String target;//加载类型
    private String parentId;
    private List<MenuTreeDTO> child=new ArrayList<>();

    public void addChild(MenuTreeDTO menu){
        this.child.add(menu);
    }

}
